package org.com.ashen.service.dao;

import org.com.ashen.dal.dataobject.SMSSendLog;
import org.com.ashen.dal.mapper.SMSSendLogMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("sMSSendLogDao")
public class SMSSendLogDao {
    @Resource
    private SMSSendLogMapper sMSSendLogMapper;

    public int insert(SMSSendLog record){
        if(record == null){
            return 0;
        }
        return sMSSendLogMapper.insert(record);
    }

    public SMSSendLog selectByPrimaryKey(Integer id){
        return sMSSendLogMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(SMSSendLog record){
        if (record == null){
            return 0;
        }
        return sMSSendLogMapper.updateByPrimaryKeySelective(record);
    }

    public SMSSendLog selectMaxId(){
        return sMSSendLogMapper.selectMaxId();
    }

}
